package com.josework.springhelloworld.dto.user;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class UserView {

    @JSONField(serializeUsing = ToStringSerializer.class)
    @JsonFormat
    private Long id;

    private String username;

    private LocalDate birthday;

    private String sex;

    private String address;

    private LocalDateTime addTime;

    private LocalDateTime updateTime;
}
